[FORMAT "WCOFF"]
[INSTRSET "i486p"]
[BITS 32]
[FILE "api006.nas"]

    GLOBAL _api_win_putstr

[SECTION .text]

_api_win_putstr:    ; void api_win_putstr(int win, int x, int y, int col, int len, char *str);
    push edi
    push esi
    push ebp
    push ebx
    mov edx, 6
    mov ebx, [esp+20]   ; win
    mov esi, [esp+24]   ; x
    mov edi, [esp+28]   ; y
    mov eax, [esp+32]   ; col
    mov ecx, [esp+36]   ; len
    mov ebp, [esp+40]   ; str
    int 40h
    pop ebx
    pop ebp
    pop esi
    pop edi
    ret
